<?php
defined('_JEXEC') or die('Restricted access');
$title = ($this->id)?"Sửa nhóm":"Thêm nhóm mới";
?>
<div class='tab_content' id="tab_create_usergroup">
	<div class='container-fluid margin10'>
			<div class='row-fluid'>
				<div class='widget widget-padding span12'>
					<div class='widget-header'>
						<i class="icon-plus"></i>						
						<h5><?php echo $title ?></h5>
					</div>
					<div class='widget-body'>
						<form method="post" action="index.php" name='form_create_usergroup' id="form_create_usergroup" class='form'>
						<div class='row-fluid'>
							<div class='span12'>
								<button type="submit" class='btn btn-primary'>
									<i class='icon-ok icon-white'></i>
									<?php echo JText::_("COM_KETNOI_SAVEBTN") ?>
								</button>
							</div>
						</div>
						
						
						<div class="row-fluid margin10">
							<div class='span12'>
									
								<div class="row-fluid">
									<div class='span12'>
										<div class="control-group">
											<label>
												Tên nhóm
												<em>*</em>
											</label>
											<div class="controls row-fluid">
												<input type='text' required='required' name='title' value="<?php echo $this->row->title ?>" class="span12"/>
												<?php if($this->id): ?>
					                       			<input type='hidden' id='oldten' value='<?= $this->row->title ?>' /> 
					                       		<?php endif; ?>
											</div>
										</div>
									</div>
								</div>	
								
							</div>
						</div>
							<input type="hidden" name="option" value="com_ketnoi" />
							<input type="hidden" name="view" value="usergroup" />
							<input type="hidden" name="task" value="usergroup.save" />
							<input type="hidden" name="tmpl" value="raw" />
							<input type="hidden" name="quickcreate" value="<?= JRequest::getVar("quickcreate",0) ?>" />
							<input type="hidden" name="client_update" value="<?= JRequest::getVar("client_update","") ?>" />
					        <?php if($this->id): ?>
							<input type="hidden" name="id" value="<?= $this->id ?>" />
							<?php endif; ?>
						</form>	
					</div>
					
				</div>
			</div>
		</div>
</div>
